Bug Entry Status


Powered by: LiveConnect
Last modified: Fri Mar 14 15:46:09 1997

Entering Bug. One moment please...

if (request.bugId != "") { // create a Java object -- Bug // note how we're passing JS primitive types: int and string // in addition to a JS object: request var bug = new Packages.bugbase.Bug(parseInt(request.bugId), request.bugPriority, request); // store it in a Java Script object // hold a lock to ensure exclusive access to project project.bugsLock.lock(); project.bugs[parseInt(request.bugId)] = bug; // release the lock project.bugsLock.unlock(); write("

====>Committed bug: "); write(bug, "
"); } else { write("

====>Couldn't commit bug: please complete all fields."); }